class MotoVehicle():
    def __init__(self,brand,vehicle,per_rent):
        self.brand=brand  #品牌
        self.vehicle=vehicle #车牌号
        self.per_rent=per_rent  #日租金
    def cal_rent(self,day):   #计算折扣的方法
        print()

class Car(MotoVehicle):  #轿车类
    def __init__(self,brand,type,vehicle,per_rent):
        super().__init__(brand,vehicle,per_rent)
        self.type = type   # 轿车特有属性：轿车型号
    def cal_rent(self,day):
        if day>7:
            youhui = 0.9
        elif day>30:
            youhui = 0.8
        elif day>150:
            youhui =0.7
        return youhui


class Bus(MotoVehicle):  #客车类
    def __init__(self,brand,seat_count,vehicle,per_rent):
        super().__init__(brand,vehicle,per_rent)
        # 子类特有属性
        self.seat_count = seat_count
    def cal_rent(self,day):
        if day>=3:
            youhui = 0.9
        elif day>=7:
            youhui = 0.8
        elif day>=30:
            youhui =0.7
        elif day>=150:
            youhui=0.6
        return youhui




bmwx6 = Car("宝马","X6","京12345",800)
bmw550i = Car("宝马","550i","京678910",600)
lydd = Car("别克","林荫大道","京127653",300)
gl8 = Car("别克","GL8","京463556",600)
cars = [bmwx6,bmw550i,lydd,gl8]

cup16=Bus("金杯","16座","京782654",800)
dreange16=Bus("金龙","16座","京725554",800)
cup34=Bus("金杯","34座","京1357911",1500)
dreange34=Bus("金龙","34座","京7665884",1500)
buss = [cup16,dreange16,cup34,dreange34]

all_car = {"1":cars,"2":buss}